//系统api
import request from '@/utils/request'

// 获取bannar图
export const getBannerImages = (data) => request({
  url: '/applet/banner/getBannerImages',
  method: 'post',
  data
})

// 添加bannar图
export const getAddBannerImage = (data) => request({
  url: '/applet/banner/addBannerImage',
  method: 'post',
  data
})

// 修改bannar图
export const getAlterBannerImage = (data) => request({
  url: '/applet/banner/alterBannerImage',
  method: 'post',
  data
})

// 删除bannar图
export const getDeleteBanner = (data) => request({
  url: '/applet/banner/deleteBanner',
  method: 'post',
  data
})

// 轮播图排序
export const getRankBanner = (data) => request({
  url: '/applet/banner/rankBanner',
  method: 'post',
  data
})

// 获取推广套餐列表
export const getDynamicExtensionConfigurationList = (data) => request({
  url: '/biz/dynamicExtension/getDynamicExtensionConfigurationList',
  method: 'post',
  data
})

// 新建一条动态推广套餐
export const getAddDynamicExtensionConfiguration = (data) => request({
  url: '/biz/dynamicExtension/addDynamicExtensionConfiguration',
  method: 'post',
  data
})

// 修改动态推广套餐
export const getUpdateDynamicExtensionConfiguration = (data) => request({
  url: '/biz/dynamicExtension/updateDynamicExtensionConfiguration',
  method: 'post',
  data
})

// 删除一条动态数据
export const getDeleteDynamicExtensionConfiguration = (data) => request({
  url: '/biz/dynamicExtension/deleteDynamicExtensionConfiguration',
  method: 'post',
  data
})
// 获取会员套餐列表
export const getMemberLevelConfigurationList = (data) => request({
  url: '/biz/member/getMemberLevelConfigurationList',
  method: 'post',
  data
})

// 会员套餐修改
export const getUpdateMemberLevelConfiguration = (data) => request({
  url: '/biz/member/updateMemberLevelConfiguration',
  method: 'post',
  data
})


//添加一条会员套餐修改
export const getAddMemberLevelConfiguration = (data) => request({
  url: '/biz/member/addMemberLevelConfiguration',
  method: 'post',
  data
})

//删除一条会员套餐修改
export const getDeleteMemberLevelConfiguration = (data) => request({
  url: '/biz/member/deleteMemberLevelConfiguration',
  method: 'post',
  data
})


// // 获取充值配置列表
// export const getRechargeMoneyList = (data) =>request({
//   url: '/applet/rechargeMoney/getRechargeMoneyList',
//   method: 'post',
//   data
// })

// 获取任务列表
export const getUserTaskList = (data) => request({
  url: '/biz/userTask/getUserTaskList',
  method: 'post',
  data
})

// // 添加任务
// export const addUserTask = (data) =>request({
//   url: '/biz/userTask/addUserTask',
//   method: 'post',
//   data
// })

// // 删除任务
// export const deleteUserTask = (data) =>request({
//   url: '/biz/userTask/deleteUserTask',
//   method: 'post',
//   data
// })

// 修改任务
export const updateUserTask = (data) => request({
  url: '/biz/userTask/updateUserTask',
  method: 'post',
  data
})


// 获取前端页面地址配置列表
export const getFrontPageUrlConfigurationList = (data) => request({
  url: '/biz/frontPageUrlConfiguration/getFrontPageUrlConfigurationList',
  method: 'post',
  data
})

// 新建一条前端页面地址配置
export const addFrontPageUrlConfiguration = (data) => request({
  url: '/biz/frontPageUrlConfiguration/addFrontPageUrlConfiguration',
  method: 'post',
  data
})

// 更新前端页面地址配置
export const updateFrontPageUrlConfiguration = (data) => request({
  url: '/biz/frontPageUrlConfiguration/updateFrontPageUrlConfiguration',
  method: 'post',
  data
})

// 删除一条前端页面地址配置
export const deleteFrontPageUrlConfiguration = (data) => request({
  url: '/biz/frontPageUrlConfiguration/deleteFrontPageUrlConfiguration',
  method: 'post',
  data
})


// 按时间升序获取所有分销用户信息分页列表
export const getAllUserDistributionByTimeDesc = (data) => request({
  url: '/biz/userDistribution/getAllUserDistributionByTimeDesc',
  method: 'post',
  data
})


// 通过一级分销用户id获取二级分销用户信息
export const getTwoStageUserByOneStageUserId = (data) => request({
  url: '/biz/userDistribution/getTwoStageUserByOneStageUserId',
  method: 'post',
  data
})


//获取通知发布分页列表
export const getNotificationManagementPageList = (data) => request({
  url: '/biz/notificationManagement/getNotificationManagementPageList',
  method: 'post',
  data
})


//发布一条新通知
export const addNotificationManagement = (data) => request({
  url: '/biz/notificationManagement/addNotificationManagement',
  method: 'post',
  data
})

//删除一条通知发布
export const deleteNotificationManagement = (data) => request({
  url: '/biz/notificationManagement/deleteNotificationManagement',
  method: 'post',
  data
})




//获取所有充值金额配置列表
export const getRechargeMoneyList = (data) => request({
  url: '/applet/rechargeMoney/getRechargeMoneyList',
  method: 'post',
  data
})


//添加一条充值金额
export const addRechargeMoney = (data) => request({
  url: '/applet/rechargeMoney/addRechargeMoney',
  method: 'post',
  data
})

//删除一条充值金额
export const deleteRechargeMoney = (data) => request({
  url: '/applet/rechargeMoney/deleteRechargeMoney',
  method: 'post',
  data
})

//修改一条充值金额
export const updateRechargeMoney = (data) => request({
  url: '/applet/rechargeMoney/updateRechargeMoney',
  method: 'post',
  data
})





//获取广告推广配置列表
export const getAdvertisementConfigurationList = (data) => request({
  url: '/biz/advertisement/getAdvertisementConfigurationList',
  method: 'post',
  data
})


//新建一条广告记录
export const addAdvertisementRecord = (data) =>
  request({
    url: "/biz/advertisement/addAdvertisementRecord",
    method: "post",
    data,
  });


// 获取登陆用户广告推广记录列表
export const getLoginUserAdvertisementRecordList = () =>
  request({
    url: "/biz/advertisement/getLoginUserAdvertisementRecordList",
    method: "post",
    // data,
  });

// 获取广告主广告记录列表
export const getSponsorRecordList = (data) =>
  request({
    url: "/biz/advertisementUser/getSponsorRecordList",
    method: "post",
    data,
  });

// 删除广告主广告记录
export const deleteSponsorRecord = (data) =>
  request({
    url: "/biz/advertisementUser/deleteSponsorRecord",
    method: "post",
    data,
  });


//统一下单，并组装所需支付参数 微信
export const createAccountDetailOrder = (data) =>
  request({
    url: "/applet/wxh5pay/createAccountDetailOrder",
    method: "post",
    data,
  });

//统一下单，并组装所需支付参数 支付宝
export const createPay = (data) =>
  request({
    url: "/applet/alipay/createPay",
    method: "post",
    data,
  });

//微信状态轮询
export const getAccountDetail = (data) =>
  request({
    url: "/applet/accountDetail/getAccountDetail",
    method: "post",
    data,
  });



// 添加订单 1金币 2广告 3会员  7后台广告金
export const addAccountDetail = (data) =>
  request({
    url: "/applet/accountDetail/addAccountDetail",
    method: "post",
    data,
  });


//添加一条充值金额
export const addAdvertisementConfiguration = (data) => request({
  url: '/biz/advertisement/addAdvertisementConfiguration',
  method: 'post',
  data
})

//删除一条充值金额
export const deleteAdvertisementConfiguration = (data) => request({
  url: '/biz/advertisement/deleteAdvertisementConfiguration',
  method: 'post',
  data
})

//修改一条充值金额
export const updateAdvertisementConfiguration = (data) => request({
  url: '/biz/advertisement/updateAdvertisementConfiguration',
  method: 'post',
  data
})



//遇识爱系统版本管理
export const getConfig = (data) => request({
  url: '/biz/config/getConfig',
  method: 'post',
  data
})

export const updateConfig = (data) => request({
  url: '/biz/config/updateConfig',
  method: 'post',
  data
})



export const updateLoginUserStatus = (data) => request({
  url: '/biz/updateLoginUserStatus',
  method: 'post',
  data
})

// 发送手机验证码
export const sendSmsCode = (data) => request({
  url: '/biz/sendSmsCode',
  method: 'post',
  data
})

// 绑定手机号
export const bindPhone = (data) => request({
  url: '/biz/bindPhone',
  method: 'post',
  data
})

// 实名认证
export const idCardVerify = (data) => request({
  url: '/biz/idCardVerify',
  method: 'post',
  data
})


//关键词列表
export const pageKeywordInterception = (data) => request({
  url: '/biz/keywordInterception/pageKeywordInterception',
  method: 'post',
  data
})

//添加关键词
export const addKeywordInterception = (data) => request({
  url: '/biz/keywordInterception/addKeywordInterception',
  method: 'post',
  data
})

//删除关键词
export const deleteKeywordInterception = (data) => request({
  url: '/biz/keywordInterception/deleteKeywordInterception',
  method: 'post',
  data
})

//修改关键词
export const updateKeywordInterception = (data) => request({
  url: '/biz/keywordInterception/updateKeywordInterception',
  method: 'post',
  data
})
